package cn.com.shaom.learning.sb.security.example2.service;

import org.springframework.security.access.PermissionEvaluator;
import org.springframework.security.access.expression.SecurityExpressionRoot;
import org.springframework.security.access.expression.method.MethodSecurityExpressionOperations;
import org.springframework.security.core.Authentication;

/**
 * ClassName: CumMethodSecurityExpression
 * Description: 自定义的表达式
 * Date: 2017/12/28 14:24 【需求编号】
 *
 * @author Shaom
 * @version V1.0.0
 */
public class CumMethodSecurityExpression extends SecurityExpressionRoot implements MethodSecurityExpressionOperations {


    public CumMethodSecurityExpression(Authentication authentication) {
        super(authentication);
    }

    @Override
    public void setPermissionEvaluator(PermissionEvaluator permissionEvaluator) {
        super.setPermissionEvaluator(new CumPermissionEvaluator());
    }


    @Override
    public void setFilterObject(Object o) {

    }

    @Override
    public Object getFilterObject() {
        return null;
    }

    @Override
    public void setReturnObject(Object o) {

    }

    @Override
    public Object getReturnObject() {
        return null;
    }

    @Override
    public Object getThis() {
        return null;
    }
}
